home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 125 / Computer Shopper CD-ROM Issue 125 (1998-07)(Dennis Publishing).iso / Business / Dazzler / DAZZLER.Z / CIconObjectList.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-26  |  825 b   |  52 lines

  1. import java.util.NoSuchElementException;
  2.  
  3. class CIconObjectList extends CObList {
  4.    CIconObject GetPrevious() throws illegalListOpException {
  5.       return (CIconObject)super.prev();
  6.    }
  7.  
  8.    void addTail(CIconObject var1) {
  9.       ((CObList)this).addElement(var1);
  10.    }
  11.  
  12.    CIconObject GetTail() {
  13.       return (CIconObject)((CObList)this).end();
  14.    }
  15.  
  16.    CIconObject GetHead() {
  17.       return (CIconObject)((CObList)this).start();
  18.    }
  19.  
  20.    void SetParentIconObject(CIconObject var1) {
  21.       CIconObject var2 = null;
  22.       boolean var3 = false;
  23.  
  24.       try {
  25.          var2 = this.GetHead();
  26.       } catch (NoSuchElementException var5) {
  27.          var3 = true;
  28.       }
  29.  
  30.       while(!var3) {
  31.          if (var2 != null) {
  32.             var2.SetParentIconObject(var1);
  33.          }
  34.  
  35.          try {
  36.             var2 = this.GetNext();
  37.          } catch (NoSuchElementException var4) {
  38.             var3 = true;
  39.          }
  40.       }
  41.  
  42.    }
  43.  
  44.    CIconObjectList() {
  45.       super(true);
  46.    }
  47.  
  48.    CIconObject GetNext() {
  49.       return (CIconObject)((CObList)this).next();
  50.    }
  51. }
  52.